<!DOCTYPE html>
<html lang="zh" class="app">
    
    <head>
        <meta charset="utf-8" />
        <meta name="renderer" content="webkit">
        <title>
            {$aid_title} | Power by iSoftTime
        </title>
        <meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav"
        />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"
        />
        <link rel="stylesheet" href="__NOTE__/css/app.v2.css" type="text/css" />
        <link rel="stylesheet" href="__NOTE__/css/font.css" type="text/css" cache="false"/>
        <link rel="stylesheet" href="__NOTE__/js/calendar/bootstrap_calendar.css" type="text/css" cache="false" />

        <!--[if lt IE 9]>
            <script src="js/ie/html5shiv.js" cache="false">
            </script>
            <script src="js/ie/respond.min.js" cache="false">
            </script>
            <script src="js/ie/excanvas.js" cache="false">
            </script>
        <![endif]-->

        <link type="text/css" rel="stylesheet" href="__NOTE__/js/webuploader/webuploader.css">
        <link type="text/css" rel="stylesheet" href="__NOTE__/js/webuploader/weui-uploader.css">
        <link rel="stylesheet" href="__NOTE__/js/select2/select2.css" type="text/css" cache="false"/>
    {block name="style"}{/block}
        <script type="text/javascript" src="__NOTE__/js/jquery.min.js"></script>

    </head>
     <body >
        <section class="vbox">
            <header class="bg-dark dk header navbar navbar-fixed-top-xs">
                <div class="navbar-header aside-md">
                    <a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen"
                    data-target="#nav">
                        <i class="fa fa-bars">
                        </i>
                    </a>
                    <a href="#" class="navbar-brand" data-toggle="fullscreen">
                        <img src="__NOTE__/images/logo.png" class="m-r-sm">
                        {$aid_title}
                    </a>
                    <a class="btn btn-link visible-xs" data-toggle="dropdown" data-target=".nav-user">
                        <i class="fa fa-cog">
                        </i>
                    </a>
                </div>
                <ul class="nav navbar-nav hidden-xs">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle dker" data-toggle="dropdown">
                            <i class="fa fa-building-o">
                            </i>
                            <span class="font-bold">
                                永远相信，美好的事情即将发生
                            </span>
                        </a>
                        <section class="dropdown-menu aside-xl on animated fadeInLeft no-borders lt">
                            <div class="wrapper lter m-t-n-xs">
                                <a href="#" class="thumb pull-left m-r">
                                    <img src="__NOTE__/images/avatar.jpg" class="img-circle">
                                </a>
                                <div class="clear">
                                    <a href="#">
                                        <span class="text-white font-bold">
                                             @{$name}
                                    </a>
                                    </span>
                                    <small class="block">
                                        {$aid_title}
                                    </small>
                                    <a href="#" class="btn btn-xs btn-success m-t-xs">
                                        升级
                                    </a>
                                </div>
                            </div>
                            <div class="row m-l-none m-r-none m-b-n-xs text-center">
                                <div class="col-xs-4">
                                    <div class="padder-v">
                                        <span class="m-b-xs h4 block text-white">
                                            245
                                        </span>
                                        <small class="text-muted">
                                            Followers
                                        </small>
                                    </div>
                                </div>
                                <div class="col-xs-4 dk">
                                    <div class="padder-v">
                                        <span class="m-b-xs h4 block text-white">
                                            55
                                        </span>
                                        <small class="text-muted">
                                            Likes
                                        </small>
                                    </div>
                                </div>
                                <div class="col-xs-4">
                                    <div class="padder-v">
                                        <span class="m-b-xs h4 block text-white">
                                            2,035
                                        </span>
                                        <small class="text-muted">
                                            Photos
                                        </small>
                                    </div>
                                </div>
                            </div>
                        </section>
                    </li>
                    <li>
                        <div class="m-t m-l">
                            <a href="price.html" class="dropdown-toggle btn btn-xs btn-primary" title="Upgrade">
                                <i class="fa fa-long-arrow-up">
                                </i>
                            </a>
                        </div>
                    </li>
                </ul>
                <ul class="nav navbar-nav navbar-right hidden-xs nav-user">
                    <li class="hidden-xs">
                        <a href="#" class="dropdown-toggle dk" data-toggle="dropdown">
                            <i class="fa fa-bell">
                            </i>
                            <span class="badge badge-sm up bg-danger m-l-n-sm count">
                                2
                            </span>
                        </a>
                        <section class="dropdown-menu aside-xl">
                            <section class="panel bg-white">
                                <header class="panel-heading b-light bg-light">
                                    <strong>
                                        You have
                                        <span class="count">
                                            2
                                        </span>
                                        notifications
                                    </strong>
                                </header>
                                <div class="list-group list-group-alt animated fadeInRight">
                                    <a href="#" class="media list-group-item">
                                        <span class="pull-left thumb-sm">
                                            <img src="__NOTE__/images/avatar.jpg" alt="John said" class="img-circle">
                                        </span>
                                        <span class="media-body block m-b-none">
                                            Use awesome animate.css
                                            <br>
                                            <small class="text-muted">
                                                10 minutes ago
                                            </small>
                                        </span>
                                    </a>
                                    <a href="#" class="media list-group-item">
                                        <span class="media-body block m-b-none">
                                            1.0 initial released
                                            <br>
                                            <small class="text-muted">
                                                1 hour ago
                                            </small>
                                        </span>
                                    </a>
                                </div>
                                <footer class="panel-footer text-sm">
                                    <a href="#" class="pull-right">
                                        <i class="fa fa-cog">
                                        </i>
                                    </a>
                                    <a href="#notes" data-toggle="class:show animated fadeInRight">
                                        See all the notifications
                                    </a>
                                </footer>
                            </section>
                        </section>
                    </li>
                    <li class="dropdown hidden-xs">
                        <a href="#" class="dropdown-toggle dker" data-toggle="dropdown">
                            <i class="fa fa-fw fa-search">
                            </i>
                        </a>
                        <section class="dropdown-menu aside-xl animated fadeInUp">
                            <section class="panel bg-white">
                                <form role="search">
                                    <div class="form-group wrapper m-b-none">
                                        <div class="input-group">
                                            <input type="text" class="form-control" placeholder="Search">
                                            <span class="input-group-btn">
                                                <button type="submit" class="btn btn-info btn-icon">
                                                    <i class="fa fa-search">
                                                    </i>
                                                </button>
                                            </span>
                                        </div>
                                    </div>
                                </form>
                            </section>
                        </section>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <span class="thumb-sm avatar pull-left">
                                <img src="__NOTE__/images/avatar.jpg">
                            </span>
                            {$name??''}
                            <b class="caret">
                            </b>
                        </a>
                        <ul class="dropdown-menu animated fadeInRight">
                            <span class="arrow top">
                            </span>
                            <li>
                                <a href="#">
                                    Settings
                                </a>
                            </li>
                            <li>
                                <a href="profile.html">
                                    Profile
                                </a>
                            </li>
                            <li>
                                <a href="#">
                                    <span class="badge bg-danger pull-right">
                                        3
                                    </span>
                                    Notifications
                                </a>
                            </li>
                            <li>
                                <a href="docs.html">
                                    Help
                                </a>
                            </li>
                            <li class="divider">
                            </li>
                            <li>
                                <a onclick="clear_cache()" >
                                    清空缓存
                                </a>
                            </li>
                            <li>
                                <a href="{:url('admin/login/loginOut')}" >
                                    安全退出
                                </a>
                            </li>
                            <li>
                                <a href="{:url('admin/login/loginOutClear')}" >
                                    退出并清空记录
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
               
            </header>
            <section>
                <section class="hbox stretch">
                    <!-- .aside -->
                    <aside class="bg-dark lter aside-md hidden-print" id="nav">
                        <section class="vbox">
                            <header class="header bg-primary lter text-center clearfix">
                                <div class="btn-group">
                                    <button type="button" class="btn btn-sm btn-dark btn-icon" title="New project">
                                        <i class="fa fa-plus">
                                        </i>
                                    </button>
                                    <div class="btn-group hidden-nav-xs">
                                        <button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-toggle="dropdown">
                                            Switch Project
                                            <span class="caret">
                                            </span>
                                        </button>
                                        <ul class="dropdown-menu text-left">
                                            <li>
                                                <a href="#">
                                                    Project
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#">
                                                    Another Project
                                                </a>
                                            </li>
                                            <li>
                                                <a href="#">
                                                    More Projects
                                                </a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </header>
                            <section class="w-f scrollable">
                                <div class="slim-scroll" data-height="auto" data-disable-fade-out="true"
                                data-distance="0" data-size="5px" data-color="#333333">
                                    <!-- nav -->
                                    <nav class="nav-primary hidden-xs">
                                        <ul class="nav">
                                          
	                                {if !empty($menu)}
						                {foreach name="menu" item="vo"}
						                <li  {if condition="isset($vo['active'])"}class="active" {/if} >
					                       
					                        <a {if condition="isset($vo['active'])"}class="active" {/if} href="{$vo.href}">
											    <i class="{$vo.icon}">
											        <b class="bg-success">
											        </b>
											    </i>
											    <span class="pull-right">
											        <i class="fa fa-angle-down text">
											        </i>
											        <i class="fa fa-angle-up text-active">
											        </i>
											    </span>
											    <span>
											       {$vo.title}
											    </span>
											</a>

					                        <ul class="nav lt">
					                            {if !empty($vo['child'])}
					                            {foreach name="$vo['child']" item="child"}
					                              <?php if (isset($child['href'])){  ?>
					                              <li {if condition="isset($child['active'])"}class="active" {/if}>
					                              <a {if condition="isset($child['active'])"}class="active" {/if} href="{$child.href??''}">
										                <i class="fa fa-angle-right"></i>
										                <span>{$child.title}</span>
										          </a>
					                              </li>
					                              <?php }else{ ?>
					                               <li {if condition="$vo['active']==$key"}class="active" {/if}>
					                                <a  class="active" href="">
											            <i class="fa fa-angle-down text">
											            </i>
											            <i class="fa fa-angle-up text-active">
											            </i>
											            <span>
											               {$key}
											            </span>
											        </a>
					                              
					                               <ul class="nav bg">
					                                    {foreach name="$child" item="v"}
					                                    <li class="{$v.active??''}">
					                                    <a href="{$v.href??''}">
											                <i class="fa fa-angle-right">
											                </i>
											                <span>
											                   {$v.title}
											                </span>
											            </a>
					                                    
					                                    </li>
					                                    {/foreach}
					                               </ul>
					                               </li>

					                              <?php } ?>
					                           
						                        {/foreach}
						                        {/if}

					                            
					                         </ul>
					                    </li>
						                
						                {/foreach}
						                {/if}
                                        </ul>
                                    </nav>
                                    <!-- / nav -->
                                </div>
                            </section>
                            <footer class="footer lt hidden-xs b-t b-dark">
                                <div id="chat" class="dropup">
                                    <section class="dropdown-menu on aside-md m-l-n">
                                        <section class="panel bg-white">
                                            <header class="panel-heading b-b b-light">
                                                Active chats
                                            </header>
                                            <div class="panel-body animated fadeInRight">
                                                <p class="text-sm">
                                                    No active chats.
                                                </p>
                                                <p>
                                                    <a href="#" class="btn btn-sm btn-default">
                                                        Start a chat
                                                    </a>
                                                </p>
                                            </div>
                                        </section>
                                    </section>
                                </div>
                                <div id="invite" class="dropup">
                                    <section class="dropdown-menu on aside-md m-l-n">
                                        <section class="panel bg-white">
                                            <header class="panel-heading b-b b-light">
                                                John
                                                <i class="fa fa-circle text-success">
                                                </i>
                                            </header>
                                            <div class="panel-body animated fadeInRight">
                                                <p class="text-sm">
                                                    No contacts in your lists.
                                                </p>
                                                <p>
                                                    <a href="#" class="btn btn-sm btn-facebook">
                                                        <i class="fa fa-fw fa-facebook">
                                                        </i>
                                                        Invite from Facebook
                                                    </a>
                                                </p>
                                            </div>
                                        </section>
                                    </section>
                                </div>
                                <a href="#nav" data-toggle="class:nav-xs" class="pull-right btn btn-sm btn-dark btn-icon">
                                    <i class="fa fa-angle-left text">
                                    </i>
                                    <i class="fa fa-angle-right text-active">
                                    </i>
                                </a>
                                <div class="btn-group hidden-nav-xs">
                                    <button type="button" title="Chats" class="btn btn-icon btn-sm btn-dark"
                                    data-toggle="dropdown" data-target="#chat">
                                        <i class="fa fa-comment-o">
                                        </i>
                                    </button>
                                    <button type="button" title="Contacts" class="btn btn-icon btn-sm btn-dark"
                                    data-toggle="dropdown" data-target="#invite">
                                        <i class="fa fa-facebook">
                                        </i>
                                    </button>
                                </div>
                            </footer>
                        </section>
                    </aside>
                    <!-- /.aside -->
                    <section>
                        {block name="body"}{/block}
                    </section>
                    <aside class="bg-light lter b-l aside-md hide" id="notes">
                        <div class="wrapper">
                            Notification
                        </div>
                    </aside>
                </section>
            </section>
        </section>
        <script src="__NOTE__/js/app.v2.js"></script>
        <script type="text/javascript" src="__NOTE__/js/layer/layer.min.js"></script>
        <script type="text/javascript" src="__NOTE__/js/webuploader/webuploader.js"></script>
        <script type="text/javascript" src="__NOTE__/js/toast.js"></script>
        <script type="text/javascript" src="__NOTE__/js/my.js"></script>
        <script type="text/javascript" src="__NOTE__/js/common.js"></script>
        <script type="text/javascript" src="__NOTE__/js/select2/select2.min.js" cache="false"></script>
       

        
        <!-- Bootstrap -->
        <!-- App -->
        <script src="__NOTE__/js/charts/easypiechart/jquery.easy-pie-chart.js" cache="false"></script>
        <script src="__NOTE__/js/charts/sparkline/jquery.sparkline.min.js" cache="false"></script>
        <script src="__NOTE__/js/charts/flot/jquery.flot.min.js" cache="false"></script>
        <script src="__NOTE__/js/charts/flot/jquery.flot.tooltip.min.js" cache="false"></script>
        <script src="__NOTE__/js/charts/flot/jquery.flot.resize.js" cache="false"></script>
        <script src="__NOTE__/js/charts/flot/jquery.flot.grow.js" cache="false"></script>
        <script src="__NOTE__/js/charts/flot/demo.js" cache="false"></script>
        <script src="__NOTE__/js/calendar/bootstrap_calendar.js" cache="false"></script>
        <script src="__NOTE__/js/calendar/demo.js" cache="false"></script>
        <script src="__NOTE__/js/sortable/jquery.sortable.js" cache="false"></script>


        <script type="text/javascript">
        $(function(){
            $(".search").hide();
            $('.select2').select2();
        });
        </script>

    {if condition="isset($importDatetimePicker)"}
        <link href="__NOTE__/js/datetimepicker/datetimepicker.css" rel="stylesheet" type="text/css">
        <script type="text/javascript" src="__NOTE__/js/datetimepicker/datetimepicker.min.js"></script>

        <script>
            $('.form-datetime').datetimepicker({
                language: "zh-CN",
                autoclose: true,
                format: 'yyyy-mm-dd hh:ii'
            });
            $('.form-date').datetimepicker({
                language: "zh-CN",
                minView: 2,
                autoclose: true,
                format: 'yyyy-mm-dd'
            });
            $('.form-time').datetimepicker({
                language: "zh-CN",
                minView: 0,
                startView:1,
                autoclose: true,
                format: 'hh:ii'
            });
            $('.time').change(function () {
                var fieldName = $(this).attr('data-field-name');
                var dateString = $(this).val();
                var date = new Date(dateString);
                var timestamp = date.getTime();
                if ( isNaN(timestamp)){    //清空nan
                    $('[name=' + fieldName + ']').val('');
                 }else{
                    $('[name=' + fieldName + ']').val(Math.floor(timestamp / 1000)); 
                }
                
            });
        </script>
    {/if}

     <script>
        function clear_cache() {
            $.get('/cc.php');
            alert('清理成功');
            // layer.msg('清理成功', {icon: 1});
        }
    </script>

     {block name="js"}{/block}

    </body>
</html>
